package org.PropertyManageMentSystem.Data;

public class Complaint {
    public enum ComplaintState{
        waitForReplies,
        repliesDone,
        closed
    }
    private Long complaintId;
    private Long taskId;
    private String info;
    private ComplaintState state;
    private String result;

    public Long getComplaintId() {
        return complaintId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public String getInfo() {
        return info;
    }

    public ComplaintState getState() {
        return state;
    }

    public String getResult() {
        return result;
    }

    public Complaint(Long complaintId, Long taskId, String info, ComplaintState state, String result) {
        this.complaintId = complaintId;
        this.taskId = taskId;
        this.info = info;
        this.state = state;
        this.result = result;
    }

    public void setState(ComplaintState state) {
        this.state = state;
    }
}
